package com.wing.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "warehouse_menu")
public class WarehouseMenu extends BaseEntity {
    @TableField(value = "parent_id")
    @Schema(description="父级id")
    private Long parentId;

    @TableField(value = "`name`")
    @Schema(description="名称")
    private String name;

    @TableField(value = "url")
    @Schema(description="url")
    private String url;

    @TableField(value = "icon")
    @Schema(description="图标")
    private String icon;

    @TableField(value = "sort_number")
    @Schema(description="排序号")
    private Integer sortNumber;

    @TableField(value = "authority")
    @Schema(description="菜单权限")
    private String authority;

    @TableField(value = "grade")
    @Schema(description="层级")
    private Integer grade;

    @TableField(value = "tree_path")
    @Schema(description="树路径")
    private String treePath;
}